Optimal. Leaf size=138 \[ -\frac {64 a^3 (7 c+5 d) \cos (e+f x)}{105 f \sqrt {a+a \sin (e+f x)}}-\frac {16 a^2 (7 c+5 d) \cos (e+f x) \sqrt {a+a \sin (e+f x)}}{105 f}-\frac {2 a (7 c+5 d) \cos (e+f x) (a+a \sin (e+f x))^{3/2}}{35 f}-\frac {2 d \cos (e+f x) (a+a \sin (e+f x))^{5/2}}{7 f} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.08, antiderivative size = 138, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.120, Rules used = {2830, 2726,
2725} \begin {gather*} -\frac {64 a^3 (7 c+5 d) \cos (e+f x)}{105 f \sqrt {a \sin (e+f x)+a}}-\frac {16 a^2 (7 c+5 d) \cos (e+f x) \sqrt {a \sin (e+f x)+a}}{105 f}-\frac {2 a (7 c+5 d) \cos (e+f x) (a \sin (e+f x)+a)^{3/2}}{35 f}-\frac {2 d \cos (e+f x) (a \sin (e+f x)+a)^{5/2}}{7 f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2725
Rule 2726
Rule 2830
Rubi steps
\begin {align*} \int (a+a \sin (e+f x))^{5/2} (c+d \sin (e+f x)) \, dx &=-\frac {2 d \cos (e+f x) (a+a \sin (e+f x))^{5/2}}{7 f}+\frac {1}{7} (7 c+5 d) \int (a+a \sin (e+f x))^{5/2} \, dx\\ &=-\frac {2 a (7 c+5 d) \cos (e+f x) (a+a \sin (e+f x))^{3/2}}{35 f}-\frac {2 d \cos (e+f x) (a+a \sin (e+f x))^{5/2}}{7 f}+\frac {1}{35} (8 a (7 c+5 d)) \int (a+a \sin (e+f x))^{3/2} \, dx\\ &=-\frac {16 a^2 (7 c+5 d) \cos (e+f x) \sqrt {a+a \sin (e+f x)}}{105 f}-\frac {2 a (7 c+5 d) \cos (e+f x) (a+a \sin (e+f x))^{3/2}}{35 f}-\frac {2 d \cos (e+f x) (a+a \sin (e+f x))^{5/2}}{7 f}+\frac {1}{105} \left (32 a^2 (7 c+5 d)\right ) \int \sqrt {a+a \sin (e+f x)} \, dx\\ &=-\frac {64 a^3 (7 c+5 d) \cos (e+f x)}{105 f \sqrt {a+a \sin (e+f x)}}-\frac {16 a^2 (7 c+5 d) \cos (e+f x) \sqrt {a+a \sin (e+f x)}}{105 f}-\frac {2 a (7 c+5 d) \cos (e+f x) (a+a \sin (e+f x))^{3/2}}{35 f}-\frac {2 d \cos (e+f x) (a+a \sin (e+f x))^{5/2}}{7 f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 1.01, size = 119, normalized size = 0.86 \begin {gather*} -\frac {a^2 \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right ) \sqrt {a (1+\sin (e+f x))} (1246 c+1040 d-6 (7 c+20 d) \cos (2 (e+f x))+(392 c+505 d) \sin (e+f x)-15 d \sin (3 (e+f x)))}{210 f \left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 3.66, size = 99, normalized size = 0.72
method | result | size |
default | \(\frac {2 \left (1+\sin \left (f x +e \right )\right ) a^{3} \left (\sin \left (f x +e \right )-1\right ) \left (-15 \sin \left (f x +e \right ) \left (\cos ^{2}\left (f x +e \right )\right ) d +\left (98 c +130 d \right ) \sin \left (f x +e \right )+\left (-21 c -60 d \right ) \left (\cos ^{2}\left (f x +e \right )\right )+322 c +290 d \right )}{105 \cos \left (f x +e \right ) \sqrt {a +a \sin \left (f x +e \right )}\, f}\) | \(99\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.37, size = 217, normalized size = 1.57 \begin {gather*} \frac {2 \, {\left (15 \, a^{2} d \cos \left (f x + e\right )^{4} + 3 \, {\left (7 \, a^{2} c + 20 \, a^{2} d\right )} \cos \left (f x + e\right )^{3} - 224 \, a^{2} c - 160 \, a^{2} d - {\left (77 \, a^{2} c + 85 \, a^{2} d\right )} \cos \left (f x + e\right )^{2} - 2 \, {\left (161 \, a^{2} c + 145 \, a^{2} d\right )} \cos \left (f x + e\right ) + {\left (15 \, a^{2} d \cos \left (f x + e\right )^{3} + 224 \, a^{2} c + 160 \, a^{2} d - 3 \, {\left (7 \, a^{2} c + 15 \, a^{2} d\right )} \cos \left (f x + e\right )^{2} - 2 \, {\left (49 \, a^{2} c + 65 \, a^{2} d\right )} \cos \left (f x + e\right )\right )} \sin \left (f x + e\right )\right )} \sqrt {a \sin \left (f x + e\right ) + a}}{105 \, {\left (f \cos \left (f x + e\right ) + f \sin \left (f x + e\right ) + f\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (a \left (\sin {\left (e + f x \right )} + 1\right )\right )^{\frac {5}{2}} \left (c + d \sin {\left (e + f x \right )}\right )\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.52, size = 213, normalized size = 1.54 \begin {gather*} \frac {\sqrt {2} {\left (15 \, a^{2} d \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) \sin \left (-\frac {7}{4} \, \pi + \frac {7}{2} \, f x + \frac {7}{2} \, e\right ) + 525 \, {\left (4 \, a^{2} c \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) + 3 \, a^{2} d \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )\right )} \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 35 \, {\left (10 \, a^{2} c \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) + 11 \, a^{2} d \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )\right )} \sin \left (-\frac {3}{4} \, \pi + \frac {3}{2} \, f x + \frac {3}{2} \, e\right ) + 21 \, {\left (2 \, a^{2} c \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) + 5 \, a^{2} d \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )\right )} \sin \left (-\frac {5}{4} \, \pi + \frac {5}{2} \, f x + \frac {5}{2} \, e\right )\right )} \sqrt {a}}{420 \, f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int {\left (a+a\,\sin \left (e+f\,x\right )\right )}^{5/2}\,\left (c+d\,\sin \left (e+f\,x\right )\right ) \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________